package com.example.mq.mqserver.core;

public enum ExchangeType {
    DIRECT(0),  // key为队列名
    FANOUT(1),  // 所有交换机下的队列
    TOPIC(2);   // 需要key匹配

    private final int type;

    private ExchangeType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }
}
